Page History: Test Request
Compare Page Revisions
Page Revision: 2012/09/05 13:37
Session Integrity CheckTest Request messages provide a mechanism of eliciting a response from the counterparty to ackknowledge continuinng Client to API server connectivity. Test request can occur at any time during the FIX Session. When a test request is received, the party is obligated to respond to the Test Request message with a Heartbeat. Such heartbeat must contain the TestRequestID (Tag 112) that originated in the Test Request message.
Test Request message also provides and opportunity to check for out-of-sequence conditions. That is, it serves as a check for the expected outgoing sequence number (Tag 34 of the Test Request) and expected incoming sequence number (Tag 34 of the mandatory hearbeat response).
The TestRequestID (Tag 112) can be text of any form but it is recommend to be unique to pair Test Requests to their corresponding Hearbeat messages.
Message DictionaryTag | Field Name | Req'd | Comments |
---|
| Standard Header | Y | MsgType = 0 |
112 | TestReqID | N | Required when the heartbeat is the result of a Test Request message |
| Standard Trailer | Y |
Sample Messages
Test Request generated by the client:
34=123|49=test|56=T4Test|50=TraderName|52=20120905-18:09:12.103|112=treqid.09.05.2012-13.09.12|
[FIXTESTREQUEST]
[MsgSeqNum] 34 = 123
[SenderCompID] 49 = test
[TargetCompID] 56 = T4Test
[SenderSubID] 50 = TraderName
[SendingTime] 52 = 20120905-18:09:12.103
[TestReqID] 112 = treqid.09.05.2012-13.09.12
T4 API Server Heartbeat response to the Client Test Request
34=72|49=T4Test|56=test|50=T4FIX|52=20120905-18:09:12.119|112=treqid.09.05.2012-13.09.12|
[FIXHEARTBEAT]
[MsgSeqNum] 34 = 72
[SenderCompID] 49 = T4Test
[TargetCompID] 56 = test
[SenderSubID] 50 = T4FIX
[SendingTime] 52 = 20120905-18:09:12.119
[TestReqID] 112 = treqid.09.05.2012-13.09.12
Test Request generated by the T4 API Server:
34=122|49=T4Test|56=test|50=T4FIX|52=20120905-18:34:21.398|112=cts-20120905-18:34:21.398|
[FIXTESTREQUEST]
[MsgSeqNum] 34 = 122
[SenderCompID] 49 = T4Test
[TargetCompID] 56 = test
[SenderSubID] 50 = T4FIX
[SendingTime] 52 = 20120905-18:34:21.398
[TestReqID] 112 = cts-20120905-18:34:21.398
Client Heartbeat response to the T4 API Server Test Request
34=173|49=test|56=T4Test|52=20120905-18:34:36.436|112=cts-20120905-18:34:21.398|
[FIXHEARTBEAT]
[MsgSeqNum] 34 = 173
[SenderCompID] 49 = test
[TargetCompID] 56 = T4Test
[SendingTime] 52 = 20120905-18:34:36.436
[TestReqID] 112 = cts-20120905-18:34:21.398